home *** CD-ROM | disk | FTP | other *** search
/ Ray Dream Studio 5 / Ray Dream.iso / pc / DreamSDK / Windows / SAMPLES / EXPORTER / DXF / RGBHSV.H < prev   
Encoding:
C/C++ Source or Header  |  1997-07-11  |  643 b   |  29 lines

  1. //$Id: RgbHsv.h 1.1 1996/07/18 23:58:27 Damien Exp $
  2.  
  3. // Copyright (c) 1990-1995 Ray Dream, Inc. All rights reserved.
  4.  
  5. #ifndef __RGBHSV__
  6. #define __RGBHSV__
  7.  
  8. class RDRGBColor {
  9. public:
  10.   RDRGBColor()    { ;}
  11.   RDRGBColor(unsigned short r,unsigned short g,unsigned short b)  { rr = r;gg = g; bb = b;}
  12.   unsigned short rr;
  13.   unsigned short gg;
  14.   unsigned short bb;
  15.   };
  16.  
  17. struct RDHSVColor {
  18.   unsigned short hue;
  19.   unsigned short saturation;
  20.   unsigned short value;
  21.   };
  22.  
  23. void RDRGB2HSV(const RDRGBColor& rgbColor, RDHSVColor& hsvColor);
  24. void RDHSV2RGB(const RDHSVColor& hsvColor, RDRGBColor& rgbColor);
  25.    
  26.  
  27. #endif
  28.  
  29.